﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BA2009.Entities;

namespace BA2009.Data.Filters
{
    public static class PageFilters
    {
        public static IQueryable<Page> FilterByCode(this IQueryable<Page> pagesQuery, string code)
        {
            return from p in pagesQuery
                   where p.Code.Contains(code)
                   select p;
        }
    }
}
